package cn.itcast.demo.pojo;

import com.leyou.starter.elastic.annotation.IndexID;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 虎哥
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
//@Indices("commodity") // 指定当前实体类相关的索引库的名称
public class Commodity {
    // 标记作为id的字段
    @IndexID
    private Long id;
    private String name;
    private String title;
    private Long price;
}